<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //1.concat('字符串1','字符串2'.....)
        var str = 'andy';
        console.log(str.concat('red'));

        //2.substr(start.length)  //起始的位置，截取几个字符
        var str1 = '改革春风吹满地';
        console.log(str1.substr(0, 3));  //从0开始，取3个字符长度
    </script>
</head>

<body>

</body>

</html>